<?php
/**
 * Created By Project
 * Author: 陈东
 * Copyright：陈东
 * Source Code：陈东
 * Explain：I shall not authorize for any other commercial purposes, law breakers must be prosecuted.
 */
namespace Liveadmin\Controller;
use Think\Controller;

class BaseController extends Controller {
	/*
	 * 后台主页显示
	 */
	public function _initialize(){
// 		if(!strpos($_SERVER["HTTP_USER_AGENT"],"Chrome")){
// 			echo "<div style=\"color:#f00; font-size:15px; text-align:center; margin-top:24px;\">为保证后台能更好的展现效果，请使用谷歌Chrome浏览器或360浏览器极速模式</div>";
// 		}
		if(empty(session('userinfo'))){
			$this->redirect('/Liveadmin/Login/index');
		}

	}


}